package com.boatAnchorAssistant.pojo.entity;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import javax.persistence.Table;

/**
 * @author Joseph.Li
 * @author joseph.li@king-v.com
 * Created in 2022-06-18 23:08
 * <p>
 * 用户与角色关联
 */
@Data
@Table
@AccEntity(value = "用户与角色关联",type = EntityType.SECONDARY_SERVICE_ENTITY)
@TableComment("用户与角色关联")
public class UserRoleMp extends DomainBaseEntity<UserRoleMp> {


    /**
     * 用户id
     */
    @Column(type = MySqlTypeConstant.BIGINT,
            length = 20,
            comment = "用户id",
            isNull = false)
    private Long userId;

    /**
     * 角色id
     */
    @Column(type = MySqlTypeConstant.BIGINT,
            length = 20,
            comment = "角色id",
            isNull = false)
    private Long roleId;


}
